package cn.angis.biz.flow.dtomapper;

import cn.angis.biz.flow.dto.input.LeaveInput;
import cn.angis.biz.flow.dto.output.LeaveOutput;
import cn.angis.biz.flow.model.Leave;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* OA 请假申请表转换类
* @author angis.cn
* @Date 2025-06-14
*/
@Mapper
public interface LeaveStruct {
    LeaveStruct INSTANCE = Mappers.getMapper(LeaveStruct.class);
    Leave toLeave(LeaveInput leaveInput);
    LeaveOutput toOutput(Leave leave);
    List<LeaveOutput> toOutputList(List<Leave> leaveList);
}
